{% extends "common/layout_main.html" %}
{% block content %}
    <div class="row  border-bottom">
        <div class="col-lg-12">
            <div class="tab_title">
                <ul class="nav nav-pills">
                    <li class="current">
                        <a href="{{ buildUrl('/member/index') }}">会员列表</a>
                    </li>
                    <li>
                        <a href="{{ buildUrl('/member/comment') }}">会员评论</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <form class="form-inline wrap_search">
                <div class="row  m-t p-w-m">
                    <div class="form-group">
                        <select name="status" class="form-control inline">
                            <option value="-1">请选择状态</option>
                            <option value="1">正常</option>
                            <option value="0">已删除</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <div class="input-group">
                            <input type="text" name="mix_kw" placeholder="请输入关键字" class="form-control" value="">
                            <span class="input-group-btn">
                            <button type="button" class="btn  btn-primary search">
                                <i class="fa fa-search"></i>搜索
                            </button>
                        </span>
                        </div>
                    </div>
                </div>
                <hr>
            </form>
            <table class="table table-bordered m-t">
                <thead>
                <tr>
                    <th>头像</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {% for member in members %}
                    <tr>
                        <td><img alt="image" class="img-circle"
                                 src="{{ member.avatar }}"
                                 style="width: 40px;height: 40px;"></td>
                        <td>{{ member.nickname }}</td>
                        <td>
                            {% if member.sex == 1 %}
                                男
                            {% else %}
                                女
                            {% endif %}
                        </td>
                        <td>正常</td>
                        <td>
                            <a href="{{ buildUrl('/member/info') }}?id={{ member.id }}">
                                <i class="fa fa-eye fa-lg"></i>
                            </a>
                            <a class="m-l" href="{{ buildUrl('/member/set') }}?id={{ member.id }}">
                                <i class="fa fa-edit fa-lg"></i>
                            </a>

                            <a class="m-l remove" href="javascript:void(0);">
                                <i class="fa fa-trash fa-lg"></i>
                            </a>
                        </td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
            <!--分页代码已被封装到统一模板文件中-->
            {% include 'account/pagenation.html' %}
        </div>
    </div>
{% endblock %}
